import 'package:hktk_app/ienum/subject/material_type_enum.dart';
import 'package:json_annotation/json_annotation.dart';

part 'hot_material.g.dart';

@JsonSerializable()
class MaterialInfoModel {
  final String? examId;


  final String? examName;


  final String? industryId;


  final String? industryName;


  final double? categoryId;


  final String? categoryName;


  final String? title;

  final String? alias;


  final int? sort;


  final bool? top;


  final bool? hot;


  final bool? type;


  final String? cover;


  final String? summary;
  final String? content;

  // 时间
  final String? releasedTime;


  final String? releasedBy;
  final MaterialType? materialType;

  final List<Map<String, Object>>? attachmentInfos;


  final int? attachmentSize;


  final int? downloadTime;

  final int? watchTime;
  final int? likeTime;
  final String? createdName;
  final bool? like;
  final bool? recommend;
  final bool? freeFlag;
  final double? columnId;

  const MaterialInfoModel({
    this.attachmentInfos,
    this.attachmentSize,
    this.downloadTime,
    this.watchTime,
    this.likeTime,
    this.createdName,
    this.like,
    this.recommend,
    this.freeFlag,
    this.columnId,
    this.examId,
    this.examName,
    this.industryId,
    this.industryName,
    this.categoryId,
    this.categoryName,
    this.title,
    this.alias,
    this.sort,
    this.top,
    this.hot,
    this.type,
    this.cover,
    this.summary,
    this.content,
    this.releasedTime,
    this.releasedBy,
    this.materialType,
  });

  factory MaterialInfoModel.fromJson(Map<String, dynamic> json) =>_$MaterialInfoModelFromJson(json);


  Map<String, dynamic> toJson() => _$MaterialInfoModelToJson(this);
}